gdk: Expand the clipboard documentation
authorMatthias Clasen <mclasen@redhat.com>
Tue, 5 Dec 2017 00:06:02 +0000 (16:06 -0800)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 5 Dec 2017 00:06:02 +0000 (16:06 -0800)
gdk/gdkclipboard.c

index 1f5f5cf1d5539b6f6e761ebdb081e0338c1b2588..2832fcad5053bb67ec001cf40fefce642a352a53 100644 (file)
  * the same application.
  *
  * To get a GdkClipboard object, use gdk_display_get_clipboard() or
- * gdk_display_get_primary_clipboard().
+ * gdk_display_get_primary_clipboard(). You can find out about the data that
+ * is currently available in a clipboard using gdk_clipboard_get_formats().
+ *
+ * To make text or image data available in a clipboard, use gdk_clipboard_set_text() or
+ * gdk_clipboard_set_texture(). For other data, you can use gdk_clipboard_set_content(),
+ * which takes a #GdkContentProvider object.
+ *
+ * To read textual or image data from a clipboard, use gdk_clipboard_read_text_async() or
+ * gdk_clipboard_read_texture_async(). For other data, use gdk_clipboard_read_async(),
+ * which provides a #GInputStream object.
  */
 
 typedef struct _GdkClipboardPrivate GdkClipboardPrivate;